var webName = location.pathname.substr(0, location.pathname.substr(1).indexOf("/") + 1);